<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd" >

<!--
* The Trustees of Columbia University in the City of New York
* licenses this file to you under the Educational Community License,
* Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at:
*
* http://opensource.org/licenses/ecl2.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
-->

<body>
<wicket:extend>
	<style>
		#permalinkHolder{
			border:1px solid #ccc;
			display:none;
			background:#ffe;
			position:absolute;
			padding:5px;
		}
		
		#permalinkHolder a{
			font-weight:bold;
			top:0;right:4px;
			outline:none;padding:0;
			display:block;position:absolute;
		}
	</style>
	<script type="text/javascript">
				$(document).ready(function() {
					$('.permaLink').click(function(event){
						event.preventDefault();
						$('#permalinkHolder').css({
							'top': event.pageY + 10,
						});
						$('#permalinkHolder').fadeIn('fast');
						$('#permalinkHolder input').focus().select();
					});
					$('#permalinkHolder .closeMe').click(function(event){
						event.preventDefault();
						$('#permalinkHolder').fadeOut('fast');
					});
				});
	</script>

	<br/>
	<wicket:enclosure child="currentLink">
	<a wicket:id="currentLink">
		<span wicket:id="currentLinkLabel">[currentLink]</span>
	</a>
	&nbsp;|&nbsp;
	<a wicket:id="allLink">
		<span wicket:id="allLinkLabel">[allLinkLabel]</span>
	</a>
	<br/>
	</wicket:enclosure>
	<br/>
	<form wicket:id="form">
		<h3><wicket:message key="searchSites"/></h3>
		<table>
			<tr>
				<td align='right'>
					<wicket:message key="siteIdTitleField"/>
				</td>
				<td>
					<input type="text" wicket:id="search" />
					
				</td>
			</tr>
			<tr>
				<td align='right'>
					<span wicket:id="instructorFieldLabel"/>
				</td>
				<td>
					<input type="text" wicket:id="instructorField" />
					&nbsp;
					<wicket:container wicket:id="instructorOptionsGroup">
					    <label><input wicket:id="instructorOption" type="radio" name="ticker"/><wicket:message key="instructor"/></label>
					    <label><input wicket:id="memberOption" type="radio" name="ticker"/><wicket:message key="member"/></label>
				    </wicket:container>
				</td>
			</tr>
			<wicket:enclosure child="termField">
				<tr>
					<td align='right'>
						<wicket:message key="termField"/>
					</td>
					<td>
						<select wicket:id="termField">
						</select>
					</td>
				</tr>
			</wicket:enclosure>
			<div class="hierarchyFields" wicket:id="hierarchyFields">
				<tr wicket:id="hierarchyDropdowns">
					<td align='right'>
						<span wicket:id="hierarchyLabel">Dept</span>:
					</td>
					<td>
						<select wicket:id="hierarchyLevel"/>
					</td>								
				</tr>
			</div>
			<tr>
				<td/>
				<td align='right'>
					<input type="submit" onclick="loadSemaphore = true; showLoading();"/>
				</td>
			</tr>
		</table>
	</form>
	<br/>
	<br/>	
	<span wicket:id="searchResultsTitle">Results for: </span><span wicket:id="searchString" style="font-weight: bold">user search string</span>
	<wicket:enclosure child="permaLink">
		<br/>
		(<a href="javascript:void(0);" class="permaLink"><wicket:message key="permaLink"/></a>&nbsp;|&nbsp;<a wicket:id="exportData"><wicket:message key="exportData"/></a>)
		<div id="permalinkHolder">
			<a class="closeMe" href="#" style="">x</a>
			<span style="display:block" styleClass="textPanelFooter"><wicket:message key="permaLinkMessage"/></span>
			<input type="text" wicket:id="permaLink" size="35"/>
		</div>
	</wicket:enclosure>
	<br/>
	<div wicket:id="navigatorTop"></div>
	<wicket:enclosure child="searchResult">
	<table class="table">
    <tbody>
    	<tr>
    	<th><a wicket:id="siteTitleSortLink"><span wicket:id="siteTitleLabel"/></a></th>
    	<th><a wicket:id="instructorSortLink"><span wicket:id="instructorSortLabel"/></a></th>
    	<th><a wicket:id="termSortLink"><span wicket:id="termSortLabel"/></a></th>
    	<th><a wicket:id="siteIdSortLink"><span wicket:id="siteIdSortLabel"/></a></th>
    	<wicket:enclosure child="providersSortLink">
    		<th><a wicket:id="providersSortLink"><span wicket:id="providersSortLabel"/></a></th>
    	</wicket:enclosure>
    	<wicket:enclosure child="publishedSortLink">
    		<th><a wicket:id="publishedSortLink"><span wicket:id="publishedSortLabel"/></a></th>
    	</wicket:enclosure>
    	<th><a wicket:id="accessSortLink"><span wicket:id="accessSortLabel"/></a></th>
    	<wicket:enclosure child="startDateSortLink">
	    	<th><a wicket:id="startDateSortLink"><span wicket:id="startDateSortLabel"/></a></th>
	    	<th><a wicket:id="endDateSortLink"><span wicket:id="endDateSortLabel"/></a></th>
	    	<th><span wicket:id="showAuthToolsHeader"/></th>
	    	<th><span wicket:id="showPublicToolsHeader"/></th>
    	</wicket:enclosure>
    	<wicket:enclosure child="accessModifiedBySortLink">
	    	<th><a wicket:id="accessModifiedBySortLink"><span wicket:id="accessModifiedBySortLabel"/></a></th>
    		<th><a wicket:id="accessModifiedOnSortLink"><span wicket:id="accessModifiedOnSortLabel"/></a></th>
    	</wicket:enclosure>
    	</tr>
       <tr wicket:id="searchResult">
       	 <td><a wicket:id="siteTitleLink"><span wicket:id="siteTitle">test</span></a></td>
       	 <wicket:enclosure child="instructor">
	       	 <td>
	       	 	<span wicket:id="instructor">Last, First</span>
	       	 	<a wicket:id="instructorLookupLink"><wicket:message key="lookupInstructor"/></a>
	       	 </td>
       	 </wicket:enclosure>
       	 <td><span wicket:id="term">term</span></td>
       	 <td><span wicket:id="siteId">site id</span></td>
       	 <wicket:enclosure child="providers">
	       	 <td>
	       	 	<span wicket:id="providers">providers</span>
	       	 	<a wicket:id="providersLookupLink"><wicket:message key="lookupProviders"/></a>
	       	 </td>
       	 </wicket:enclosure>
       	 <wicket:enclosure child="published">
       	 	<td><span wicket:id="published">Yes</span></td>
       	 </wicket:enclosure>
       	 <td><span wicket:id="access">!site.course:instructor</span></td>
       	 <wicket:enclosure child="startDate">
	       	 <td><span wicket:id="startDate">1/1/2012</span></td>
	       	 <td><span wicket:id="endDate">12/21/2012</span></td>
	       	 <td><span wicket:id="showAuthTools">Syllabus, Home</span></td>
	       	 <td><span wicket:id="showPublicTools">Syllabus, Home</span></td>
       	 </wicket:enclosure>
       	 <wicket:enclosure child="accessModifiedBy">
       	 	<td><span wicket:id="accessModifiedBy">Bryan Holladay</span></td>
       	 	<td><span wicket:id="accessModified">4/13/2011</span></td>
       	 </wicket:enclosure>
       </tr>
    </tbody>
	</table>
	</wicket:enclosure>
	<div wicket:id="navigatorBottom"></div>

</wicket:extend>
</body>
</html>
